
import React, { Component } from 'react'

export default class Son extends Component {

  toParent=()=>{
    this.props.onChuan("hello,我是儿子");
  }
    
  render() {
    return (
      <>
        <div>Son</div>
        <p>this.props.title:{this.props.title}</p>
        <input type="button" value=" 传 "  onClick={this.toParent}/>
      </>
    )
  }
}
